//
//  LOHomeBottomCollectionViewCell.m
//  renmingongshe
//
//  Created by macbook on 2017/10/22.
//  Copyright © 2017年 xiaodian. All rights reserved.
//

#import "LOHomeBottomCollectionViewCell.h"

@implementation LOHomeBottomCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)showData:(NSDictionary *)data
{
    if (![TXUtilsString isBlankString:data[@"goodsImg"]]) {
        [_IconImg sd_setImageWithURL:[NSURL URLWithString:[Utils getImaSting:data[@"goodsImg"]]] placeholderImage:[UIImage imageNamed:@"NoStore"] options:SDWebImageRetryFailed];
    }else{
        [_IconImg setImage:[UIImage imageNamed:@"NoStore"]];
    }
    _GoodsName.text = [NSString stringWithFormat:@"%@", data[@"goodsName"]];
    _StatusLabel.text = [NSString stringWithFormat:@"%@", data[@"goodsTips"]];
    _PriceLabel.text = [NSString stringWithFormat:@"￥%.2f", [data[@"shopPrice"] floatValue]];
    _ProfitLabel.text = [NSString stringWithFormat:@" 分润点:%.2f ", [data[@"goods_pv"] floatValue]];
    _ProfitLabel.layer.borderColor = [[UIColor colorWithHex:0xe32300]CGColor];
    _ProfitLabel.layer.borderWidth = 1.0f;
    [_ProfitLabel.layer setCornerRadius:10.0];
    _ProfitLabel.layer.masksToBounds = YES;
}

@end
